package com.gin.supermarket_inventory_system.commodity.service;

import com.gin.database.service.MyService;
import com.gin.supermarket_inventory_system.commodity.entity.CommodityProducerPo;

import java.util.HashMap;

/**
 *
 * @since : 2023/10/9 15:36
 * @author : ginstone
 * @version : v1.0.0
 **/
public interface CommodityProducerService extends MyService<CommodityProducerPo> {


    default HashMap<Long,String> getNameMap(){
        final HashMap<Long, String> map = new HashMap<>();
        list().forEach(i->map.put(i.getId(),i.getName()));
        return map;
    }
}